package org.manusoft.refill.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="t_user_roles")
public class TUserRoles implements Serializable {
	@Id
	@Column(name="USER_ROLE_ID")
	private int userRoleId;

	private String authority;

	@ManyToOne
	@JoinColumn(name="USER_ID")
	private TUserDetailsRf userId;

	private static final long serialVersionUID = 1L;

	public TUserRoles() {
		super();
	}

	public int getUserRoleId() {
		return this.userRoleId;
	}

	public void setUserRoleId(int userRoleId) {
		this.userRoleId = userRoleId;
	}

	public String getAuthority() {
		return this.authority;
	}

	public void setAuthority(String authority) {
		this.authority = authority;
	}

	public TUserDetailsRf getUserId() {
		return this.userId;
	}

	public void setUserId(TUserDetailsRf userId) {
		this.userId = userId;
	}

}
